package com.kbs.pay.management.constant;

import lombok.Getter;

/**
 * @author Lenki
 */
@Getter
public enum ResponseEnum {

    UNKNOWN_ERROR(-1, "系统错误"),

    INCOMPLETE_PARAMETERS(201, "参数不完整"),

    NULL_OBJECT(202,"对象为空"),

    NULL_PARAMS(203,"参数为空"),

    ADD_EXCEPTION(204,"新增异常"),

    ADD_FAIL(205,"新增失败"),

    UPDATE_EXCEPTION(206,"修改异常"),

    UPDATE_FAIL(207,"修改失败"),

    DELETE_EXCEPTION(208,"删除异常"),

    DELETE_FAIL(209,"删除失败"),

    ;

    private Integer code;

    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
